<?php
/* 
* @Title:  [订单列表控制器]
* @Author: {chenlei} [chenleib5@126.com]
* @Date:   2014-04-18 16:34:19
* @Last Modified by:   Administrator
* @Last Modified time: 2014-04-26 20:12:55
* @Copyright:  [hn7m.com]
*/
class OrderListModel extends Model{
	public $table='order_list';
	/**
	 * [add_data 添加数据]
	 * @param [type] $data [description]
	 */
	public function add_data($data){
		return $this->add($data);
	}
	/**
	 * [get_data 按条件获得数据]
	 * @param  [type] $where [description]
	 * @return [type]        [description]
	 */
	public function get_data($where=NULL){
		return $this->where($where)->findAll();
	}
	/**
	 * [del_data 删除数据]
	 * @param  [type] $where [description]
	 * @return [type]        [description]
	 */
	public function del_data($where){
		return $this->where($where)->del();
	}
}
?>